<script>
	$(function(){
		$("#shop_id").combobox({    
		    url: '/shop/combobox',    
		    required: true,
		     valueField:'id',    
    		textField:'name', 
		    width:150,
		    onSelect: function(rec){    
		    	$('#pid').combotree('clear');
	            var url = '/productType/combotree/'+rec.id;    
	            $('#pid').combotree('reload', url);
	        } 
		}); 
		$('#pid').combotree({
			url: '/productType/combotree/${(po.shop_id)!0}'
		}); 
	})
</script>
<form method="post" id="editForm" name="editForm">
	<input type="hidden" name="productType.id" value="${(po.id)!}" id="poid">
	<div id="tt" class="easyui-tabs" style="width: 786px; height: 450px;">
		<div title="类别信息" style="padding: 5px;">
			<table class="tableForm tableCss">
				<tr>
					<th>商户</th>
					<td colspan="3">
						 <input id="shop_id" name="productType.shop_id" value="${(po.shop_id)!}"> 
					</td>
				</tr>
				<tr>
					<th>所属上级</th>
					<td colspan="3">
						<input id="pid" name="productType.pid" value="${(po.pid)!0}"/>
					</td>
				</tr>
				<tr>
					<th><font color=red>*</font>类别名称</th>
					<td><input type="text" name="productType.name" class="easyui-validatebox"
						value="${(po.name)!}" data-options="required:true"></td>
					<th>排序</th>
					<td><input type="text" name="productType.seq"
						class="easyui-validatebox" value="${(po.seq)!0}"
						data-options=""></td>
				</tr>
			</table>
		</div>
	</div>
</form>